#ifndef FISHWIDGET_H
#define FISHWIDGET_H

#include <QWidget>
#include <QTimer>

class FishWidget : public QWidget
{
    Q_OBJECT
public:
    explicit FishWidget(QWidget *parent = nullptr);

    void setPixmap(const QPixmap &pixmap);

    void setAngle(qreal angle);

protected:
    void paintEvent(QPaintEvent *event) override;
    QSize sizeHint() const override;

signals:

public slots:

private:
    QPixmap m_pixamp;
    qreal m_angle = 0;
    QTimer timer;
    int index = 1;
    bool isOk = true;
};

#endif // FISHWIDGET_H
